<div id="slideshow">
<div class="slideshow">
	<div id="slider_nav"></div>
	<div id="slider" class="clearfix">
		<?php
		  $featured_post=new WP_Query('orderby=rand&showposts=5&caller_get_posts=5'); 
			while($featured_post->have_posts()) : $featured_post->the_post();
			
			
			?>
		<div class="featured_post" >
			<div class="slider_image">			
	<?php $image="";
	      if(get_post_meta($post->ID, 'thumbnail', true) )
		  {
		     $image = get_post_meta($post->ID, 'thumbnail', true);
		  }
		  else
		  {
		     $image = get_bloginfo('stylesheet_directory').'/images/snap.jpg';
		  }
		  
		  
	?>
	
	<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><img src="<?php echo $image; ?>" border="0px" width="300px" height="220px" alt="<?php the_title(); ?>"/></a>

			</div>
			<div class="slider_post">
				<div class="ico"><?php //include('cat_ico.php'); ?></div>
				<h3 class="entry-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Read more about <?php the_title_attribute(); ?>"><?php echo cut_str($post->post_title,30); ?></a></h3> 
				<div class="post-meta">
					<span class="postdate"><?php the_time('Y-m-d') ?></span>
					<span class="category"> &#8260; <?php the_category(', ') ?></span>&nbsp
					<span class="edit"><?php edit_post_link('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;', '  ', '  '); ?></span>
				</div>    
				<p><?php echo mb_strimwidth(strip_tags(apply_filters('the_content', $post->post_content)), 0, 240,"..."); ?></p>
					<div class="more"><a href="<?php the_permalink() ?>" title="read more about <?php the_title(); ?>" rel="bookmark" class="title">read more</a></div>
			</div>
		</div>
<?php endwhile; ?>
	</div>
 </div>
	<b class="lt"></b>
	<b class="rt"></b>
	<b class="lb"></b>
	<b class="rb"></b>	
 </div>
